# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

inherit subversion mono eutils

MY_PN=${PN/-svn/}

ESVN_REPO_URI="svn://anonymous@forgesvn1.novell.com/svn/sonance/trunk/sonance"

DESCRIPTION="C# binding to gstreamer"
HOMEPAGE="http://www.mono-project.com/"
SRC_URI=""
LICENSE="GPL-2"

SLOT="0"
KEYWORDS="~x86"
IUSE=""
DEPEND=">=dev-dotnet/gtk-sharp-svn-0.2.4
	>=media-libs/libipoddevice-0.1.1"
S=${WORKDIR}/${MY_PN}

src_unpack() {
	subversion_src_unpack
}

src_compile() {
	./autogen.sh || die "./autogen.sh failed"
	econf || die "econf failed"
	emake -j1 || die "make failed"
}

src_install() {
	#dodir usr/lib/monodoc/sources
	make GACUTIL_FLAGS="/root ${D}/usr/lib /gacdir /usr/lib /package ${MY_PN}" \
		DESTDIR=${D} install || die "make install failed"
}
